Styling the Groups Grid
The grid and its cards are styled entirely from SASS variables, so in most cases you do not need to override a stylesheet at all. Copy the variable file that defines the value you want to change into your project — as described in Using SASS To Customize WebWorks Reverb 2.0 — and edit the value there. The default values are listed below.
For anything the variables do not cover, add your own rules to custom.scss, as described in Adding Your Own CSS with custom.scss. The grid's own structural rules live in skin.scss, and its responsive rules live in webworks.scss, because the grid renders inside the page frame.
_colors.scss
Variable | Default | Controls |
|---|---|---|
|
| Card background. |
|
| Card border. |
|
| Card border when the card is hovered or holds focus. |
|
| Keyline along the top edge of an engaged card, and the focus ring on card links. |
|
| Card title. |
|
| Card title when hovered. |
|
| Member links listed inside a card. |
|
| Member link when hovered. |
_sizes.scss
Variable | Default | Controls |
|---|---|---|
|
| Padding around the grid. |
|
| Padding around the grid in the narrow (mobile) layout. |
|
| Space between cards. |
|
| Space between cards in the narrow (mobile) layout. |
|
| Minimum card width. The grid fits as many columns of at least this width as the page allows. |
|
| Padding inside a card. |
|
| Corner radius of a card. |
|
| Thickness of the top-edge keyline. |
|
| Padding on each member link. |
_borders.scss
Variable | Default | Controls |
|---|---|---|
|
| Card border style. |
|
| Card border width. |
_fonts.scss
Variable | Default | Controls |
|---|---|---|
|
| Card title font family. |
|
| Card title font size. |
|
| Card title font weight. |
|
| Member link font family. |
|
| Member link font size. |
The grid's own markup carries these class names, which you can target from custom.scss when a variable is not enough:
Class | Applies to |
|---|---|
| The container the grid is rendered into. It also carries the current layout class ( |
| The list that lays the cards out in columns. |
| One card. |
| The card's title, which is a link when the card has a page of its own. |
| The list of member links inside a card. |